from configparser import ConfigParser
config = ConfigParser()
#添加section
config.add_section("cases")

config['cases']['msg'] ="hello"
config['cases']['msg1'] ="hello111"


with open("../settings.ini","a",encoding='utf-8') as f:
    config.write(f)

